package com.renshine.swing.component.panel;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JPanel;

import org.springframework.stereotype.Component;

@Component
@SuppressWarnings("serial")
public class SubmitPane extends JPanel {
	
	// 登录按钮
	private JButton loginButton;
	// 取消按钮
	private JButton cancelButton;

	public SubmitPane() {
		setLayout(new FlowLayout(FlowLayout.RIGHT));
		{
			loginButton = new JButton("登录");
			add(loginButton);
		}
		{
			cancelButton = new JButton("取消");
			add(cancelButton);
		}
	}

	public JButton getLoginButton() {
		return loginButton;
	}

	public void setLoginButton(JButton loginButton) {
		this.loginButton = loginButton;
	}

	public JButton getCancelButton() {
		return cancelButton;
	}

	public void setCancelButton(JButton cancelButton) {
		this.cancelButton = cancelButton;
	}
}
